
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont icon-sina"></i>
                    <div class="name">sina</div>
                    <div class="fontclass">.icon-sina</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-wechat"></i>
                    <div class="name">wechat</div>
                    <div class="fontclass">.icon-wechat</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zan1"></i>
                    <div class="name">赞</div>
                    <div class="fontclass">.icon-zan1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-qq"></i>
                    <div class="name">qq</div>
                    <div class="fontclass">.icon-qq</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-13"></i>
                    <div class="name">分享</div>
                    <div class="fontclass">.icon-13</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shape"></i>
                    <div class="name">分享</div>
                    <div class="fontclass">.icon-shape</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-fenxiang1"></i>
                    <div class="name">分享</div>
                    <div class="fontclass">.icon-fenxiang1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-duigou"></i>
                    <div class="name">对勾</div>
                    <div class="fontclass">.icon-duigou</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-pinglun"></i>
                    <div class="name">评论</div>
                    <div class="fontclass">.icon-pinglun</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-top"></i>
                    <div class="name">top</div>
                    <div class="fontclass">.icon-top</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dashang1"></i>
                    <div class="name">打赏</div>
                    <div class="fontclass">.icon-dashang1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji1"></i>
                    <div class="name">等级1</div>
                    <div class="fontclass">.icon-dengji1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji2"></i>
                    <div class="name">等级5</div>
                    <div class="fontclass">.icon-dengji2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji3"></i>
                    <div class="name">等级7</div>
                    <div class="fontclass">.icon-dengji3</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji4"></i>
                    <div class="name">等级2</div>
                    <div class="fontclass">.icon-dengji4</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji5"></i>
                    <div class="name">等级9</div>
                    <div class="fontclass">.icon-dengji5</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji6"></i>
                    <div class="name">等级15</div>
                    <div class="fontclass">.icon-dengji6</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji7"></i>
                    <div class="name">等级14</div>
                    <div class="fontclass">.icon-dengji7</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji8"></i>
                    <div class="name">等级13</div>
                    <div class="fontclass">.icon-dengji8</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji9"></i>
                    <div class="name">等级3</div>
                    <div class="fontclass">.icon-dengji9</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji10"></i>
                    <div class="name">等级6</div>
                    <div class="fontclass">.icon-dengji10</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji11"></i>
                    <div class="name">等级10</div>
                    <div class="fontclass">.icon-dengji11</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji12"></i>
                    <div class="name">等级4</div>
                    <div class="fontclass">.icon-dengji12</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji13"></i>
                    <div class="name">等级12</div>
                    <div class="fontclass">.icon-dengji13</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji14"></i>
                    <div class="name">等级8</div>
                    <div class="fontclass">.icon-dengji14</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji15"></i>
                    <div class="name">等级11</div>
                    <div class="fontclass">.icon-dengji15</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dengji16"></i>
                    <div class="name">等级16</div>
                    <div class="fontclass">.icon-dengji16</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zan2"></i>
                    <div class="name">赞</div>
                    <div class="fontclass">.icon-zan2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-lianjie"></i>
                    <div class="name">链接</div>
                    <div class="fontclass">.icon-lianjie</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-puls-"></i>
                    <div class="name">puls</div>
                    <div class="fontclass">.icon-puls-</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
